
#include <QtWidgets/QApplication>

#include "QtOgreApplication.h"


#if defined(WIN32)
#include "windows.h"

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
	int argc = 0;
	char **argv = NULL;
#else
int main (int argc, char *argv[]) {
#endif

	QApplication app(argc, argv);

	QtOgreApplication w;

	w.show();

	// the call to exec will block until the last GUI window has been closed
	//app.connect( &app, SIGNAL( lastWindowClosed() ), &app, SLOT( quit() ) );
	return app.exec();

	/*
	Ogre::NameValuePairList opts;
	int resx = 1024;
	int resy = 768;
	opts["resolution"] = resx +"x"+ resy;
	opts["fullscreen"] = "false";
	opts["vsync"] = "false";

	// create a rendering window with the title "endogame"
	window = ogre->createRenderWindow(Strings::TITLE , resx, resy, false, &opts);
	*/
}
